home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / LIBTIFF / DIST / NEWALPHA next >
Encoding:
Text File  |  1999-09-11  |  295 b   |  9 lines

  1. #! /bin/sh
  2. #    $Header: /usr/people/sam/tiff/dist/RCS/newalpha,v 1.1 1994/12/17 18:27:58 sam Rel $
  3. if test -r tiff.alpha; then
  4.     ALPHA=`cat tiff.alpha`; rm -f tiff.alpha
  5.     echo "$ALPHA" | awk '{ printf "define ALPHA %03d\n", $3+1}' > tiff.alpha
  6. else
  7.     echo "define ALPHA 001" >tiff.alpha
  8. fi
  9.